package com.wctj.api.infra.huifu.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SettleAccount {

    @JsonProperty("id")
    private String id; // 由 Adapay 生成的结算账户对象 id

    @JsonProperty("object")
    private String object; // 结算账户对象，settle_account

    @JsonProperty("channel")
    private String channel; // 目前仅支持：bank_account（银行卡）

    @JsonProperty("create_time")
    private String createTime; // 创建时的时间戳

    @JsonProperty("prod_mode")
    private String prodMode; // 是否 prod模式，true 是 prod模式，false 是 mock模式

    @JsonProperty("account_info")
    private AccountInfo accountInfo; // 结算账户信息，参见 结算账户信息对象

    @JsonProperty("status")
    private String status; // 当前交易状态，参见 状态 说明

    @JsonProperty("error_code")
    private String errorCode; // 错误码，详见 错误

    @Override
    public String toString() {
        return "SettleAccount{" +
                "id='" + id + '\'' +
                ", object='" + object + '\'' +
                ", channel='" + channel + '\'' +
                ", createTime='" + createTime + '\'' +
                ", prodMode='" + prodMode + '\'' +
                ", accountInfo=" + accountInfo +
                ", status='" + status + '\'' +
                ", errorCode='" + errorCode + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getProdMode() {
        return prodMode;
    }

    public void setProdMode(String prodMode) {
        this.prodMode = prodMode;
    }

    public AccountInfo getAccountInfo() {
        return accountInfo;
    }

    public void setAccountInfo(AccountInfo accountInfo) {
        this.accountInfo = accountInfo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}

